package com.caocaog.market.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 市场调研历史
 *
 * @author chechen
 * @date 2022-01-13
 */
@Data
@NoArgsConstructor
@TableName("mk_mart_research_his")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "mk_mart_research_his对象", description = "市场调研")
public class MartResearchHis extends MartResearchBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;

    @ApiModelProperty(value = "市场调研主表id")
    private String martResearchId;

    public MartResearchHis(MartResearchBase martResearchBase) {
        super(martResearchBase);
    }

    public MartResearchHis(MartResearch martResearch) {
        super(martResearch);
        this.martResearchId = martResearch.getId();
    }

}
